<%@page pageEncoding="UTF-8" %>


<script>
    $(function () {
        $('#myUserTable').datagrid({
            url:'${pageContext.request.contextPath}/user/selectUser',
            pagination:true,
            columns:[[
                {title:'编号',field:'userId',width:100},
                {title:'头像',field:'userImage',width:100,
                    formatter:function (value,rowdata,index) {
                        return "<img src='${pageContext.request.contextPath }"+value+"' style=width:30px;height:30px;>"
                    }
                },
                {title:'姓名',field:'userName',width:100},
                {title:'电话号',field:'userTelphone',width:100},
                {title:'网名',field:'userNickname',width:100},
                {title:'性别',field:'userSex',width:100},
                {title:'签名',field:'userAutograph',width:100},
                {title:'省份',field:'userProvince',width:100},
                {title:'城市',field:'userCity',width:100},
                {title:'正常用户',field:'userStatus',width:100},
                {title:'',field:'userStatus',width:100},
                {title:'状态',field:'userStatus',width:100},

            ]]
        });
    })
    //条件搜索
    function userss() {
        var sUserName = $("#sUserName").val();
        $('#myUserTable').datagrid('load',{
            "userName":sUserName
        });


    }






</script>

<input type="text" id="sUserName"><a href="javascript:void(0)" onclick="userss()" class="easyui-linkbutton">点击搜索</a>
<table id="myUserTable"></table>
